<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JavaScript对象</title>
</head>
<body>

<script>
    person = {firstname:"John",lastname:"Doe",age:50,eyecolor:"blue"};
    document.write(person.firstname + " is " + person.age + " years old.");
</script>

</body>
</html>